aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog/[...slug].astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/blog/[...slug].astro')
-rw-r--r--src/pages/blog/[...slug].astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro
index 7db75bb..de4efb6 100644
--- a/src/pages/blog/[...slug].astro
+++ b/src/pages/blog/[...slug].astro
@@ -1,6 +1,7 @@
---
import Page from '../../layouts/BlogPost.astro';
import { getEntry } from 'astro:content';
+import { formatDate } from "../../util";
const { slug } = Astro.params;
if (slug === undefined) {
@@ -15,7 +16,7 @@ if(entry === undefined) {
const { Content } = await entry.render();
---
-<Page title={entry.data.title} description={entry.data.description}>
+<Page title={entry.data.title} description={entry.data.description} date={formatDate(entry.data.date)}>
<main>
<Content />
</main>